//
//  TestDropDownVC.swift
//  GHSwiftProject
//
//  Created by Guanghui Liao on 4/11/18.
//  Copyright © 2018 liaoworking. All rights reserved.
//

import UIKit
import DropDown


class TestDropDownVC: GHBaseViewController {

    var choiceView: HomeChoiceView!
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        configHomeChoiceView()
    }

    func configHomeChoiceView() {
        choiceView = HomeChoiceView(frame: CGRect(x: 0, y: 200, width: K_WIDTH, height: 44))
        choiceView.delegate = self
        view.addSubview(choiceView)
        
    }
    
}

extension TestDropDownVC: HomeChoiceViewDelegate{
    func didSelectedItem(position: BtnPosition, index: Int) {
        switch position {
        case .left:
            print("点击了左边\(index)")
        case .center:
            print("点击了中间边\(index)")
        case .right:
            print("点击了右边\(index)")
        }
    }
    
    
    
}


